package com.gzs.learn.payment.config;

import com.gzs.learn.payment.clients.ISerialClient;
import com.gzs.learn.payment.clients.ISerialQueryClient;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhisong.guan
 * @date 2022/11/1 16:44
 */
@Configuration
public class FeignClientConfig {

    @MockBean
    ISerialClient serialClient;

    @MockBean
    ISerialQueryClient serialQueryClient;

    @Bean
    public ISerialClient serialClient() {
        return serialClient;
    }

    @Bean
    public ISerialQueryClient serialQueryClient() {
        return serialQueryClient;
    }
}
